﻿#region License

// Another free, open solution by someone who gets it.
// 
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// 
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
// 
// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.

#endregion

using System;
using System.Collections.Generic;

namespace Patterns.Reflection
{
	///<summary>
	///	Encapsulates detailed information about a type member.
	///</summary>
	public class MemberDetails
	{
		/// <summary>
		/// 	Gets or sets the name of the member.
		/// </summary>
		/// <value>The name of the member.</value>
		public string Name{ get; set; }

		///<summary>
		///	Gets or sets a value indicating whether or not the current member is static.
		///</summary>
		public bool IsStatic{ get; set; }

		///<summary>
		///	Gets or sets a value indicating whether or not the current member is public.
		///</summary>
		public bool IsPublic{ get; set; }

		///<summary>
		///	Gets or sets a value indicating whether or not the current member is a field.
		///</summary>
		public bool IsField{ get; set; }

		/// <summary>
		/// 	Gets or sets a value indicating whether or not the current member is a property.
		/// </summary>
		public bool IsProperty{ get; set; }

		/// <summary>
		/// 	Gets or sets a value indicating whether or not the current member is a property with index parameters.
		/// </summary>
		public bool IsIndexedProperty{ get; set; }

		/// <summary>
		/// 	Gets or sets a value indicating whether or not the current member is a constructor.
		/// </summary>
		public bool IsConstructor{ get; set; }

		/// <summary>
		/// 	Gets or sets a value indicating whether or not the current member is a method.
		/// </summary>
		public bool IsMethod{ get; set; }

		/// <summary>
		/// 	Gets or sets a value indicating whether or not the current member has a generic signature.
		/// </summary>
		public bool IsGeneric{ get; set; }

		/// <summary>
		/// 	Gets or sets the generic type arguments (if any) for the current member.
		/// </summary>
		public IEnumerable<Type> GenericTypes{ get; set; }

		/// <summary>
		/// 	Gets or sets the index parameter types (if any) for the current member.
		/// </summary>
		public IEnumerable<Type> IndexTypes{ get; set; }

		/// <summary>
		/// 	Gets or sets the  parameter types (if any) for the current member.
		/// </summary>
		public IEnumerable<Type> ParameterTypes{ get; set; }

		/// <summary>
		/// 	Gets or sets the  return type (if any) for the current member.
		/// </summary>
		public Type ReturnType{ get; set; }
	}
}